package com.tgy.mapper;

import com.tgy.entity.User;
import org.apache.ibatis.session.SqlSession;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

/***
 * @ClassName: UserDao
 * @Description:
 * @Auther: 送一一块二向箔
 * @Date: 17:26 2021/12/19
 * @version : V1.0
 */
public class UserDao extends SqlSessionDaoSupport implements UserMapper {
    @Override
    public List<User> getAll() {
        SqlSession sqlSession = getSqlSession();
        UserMapper mapper = sqlSession.getMapper(UserMapper.class);
        List<User> all = mapper.getAll();
        return all;
    }
}
